from crawl.best_seller.amazon_seller.amazon_best_selling import AmazonBestSelling
from crawl.best_seller.bestbuy_seller.bestbuy_best_selling import BestBuyBestSelling
from crawl.best_seller.tmall_seller.TM_best_selling import TmallBestSelling
from crawl.best_seller.seller_urls import amazon_urls, bestbuy_urls, jd_urls, tmall_urls
from crawl.best_seller.JD_seller.JD_best_selling import JDBestSelling


def run():
    list_amazon = amazon_urls()
    list_bestbuy = bestbuy_urls()
    list_jd = jd_urls()
    list_tm = tmall_urls()
    for tuple1 in list_amazon:
        AmazonBestSelling().run(*tuple1)
    for tuple2 in list_bestbuy:
        BestBuyBestSelling(*tuple2).run()
    for tuple3 in list_jd:
        JDBestSelling(*tuple3).run()
    for tuple4 in list_tm:
        TmallBestSelling(*tuple4).run()


if __name__ == '__main__':
    run()